# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit kde cmake-utils

DESCRIPTION="KDE implementation of ssh-askpass with Kwallet integration."
HOMEPAGE="http://www.kde-apps.org/content/show.php?content=50971&forumpage=0"
SRC_URI="http://www.kde-apps.org/CONTENT/content-files/50971-${P}.tar.gz"
LICENSE="GPL-2"
SLOT="3.5"
KEYWORDS="~x86 ~amd64"
IUSE=""

need-kde 3.5

DEPEND=""
RDEPEND="net-misc/openssh"

src_install() {
	cmake-utils_src_install
	doenvd ${FILESDIR}/99ssh_askpass
	dodoc ChangeLog TODO || die "dodoc failed"
}

pkg_postinst() {
	ewarn "In order to have ksshagent start at kde startup,"
	ewarn "edit KDEDIR/env/agent-startup.sh and uncomment"
	ewarn "the lines enabling ssh-agent."
	ewarn ""
	ewarn "If you do so, do not forget to uncomment the respective"
	ewarn "lines in KDEDIR/shutdown/agent-shutdown.sh to"
	ewarn "properly kill the agent when the session ends."
}
